package com.ericsson.enap.modules.autoCheck.mapper;

import com.ericsson.enap.modules.autoCheck.entity.AutoCheck;
import com.ericsson.enap.modules.autoCheck.entity.AutoCheckItem;
import com.ericsson.enap.modules.autoCheck.entity.VisAutoCheckLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 自动巡检日志mapper
 * @author: chenhongbo
 * @create: 2021-11-17 15:05
 */

@Mapper
public interface AutoCheckLogMapper {

    void insertAutoCheck(AutoCheck autoCheck);

    void insertAutoCheckItem(@Param("autoCheckItem") List<AutoCheckItem> autoCheckItem);

    List<AutoCheckItem> selectAutoCheckItem(AutoCheckItem autoCheckItem);

    List<AutoCheck> getCurrentTimeAlarm();

    List<AutoCheck>  selectOldCheckLogData(@Param("cleanDate")String cleanDate);

    void deleteAutoCheck(AutoCheck autoCheck);

    void deleteItem(AutoCheckItem autoCheckItem);
}
